<!--********************************************************************
* Copyright© 2000 - 2025 SuperMap Software Co.Ltd. All rights reserved.
*********************************************************************-->
<html>
<head>
    <meta charset='utf-8'/>
    <title data-i18n="resources.title_beijingDarkBlueStyle"></title>
    <meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no'/>
    <script type="text/javascript" src="../js/include-web.js"></script>
    <script type="text/javascript" exclude='iclient-maplibregl' src="../../dist/maplibregl/include-maplibregl.js"></script>
    <style>
        body {
            margin: 0;
            padding: 0;
        }

        #map {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 100%;
        }
    </style>
</head>
<body>
<div id='map'></div>
<script type="text/javascript">

    var attribution = "<a href='https://maplibre.org/' target='_blank'>© MapLibre </a>" +
        " with <span>© <a href='https://iclient.supermap.io' target='_blank'>SuperMap iClient</a> | </span>" +
       " Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' target='_blank'>SuperMap iServer</a></span> ";

    var map = new maplibregl.Map({
        container: 'map', // container id
        style: {
            "version": 8,
            "sources": {
                "vector-tiles": {
                    "attribution": attribution,
                    "type": "vector",
                    "tiles": ["https://iserver.supermap.io/iserver/services/map-beijing/rest/maps/beijingMap/tileFeature.mvt?returnAttributes=true&compressTolerance=-1&width=512&height=512&viewBounds={bbox-epsg-3857}&expands=0:0_2,132_128,138_64,141_32,143_16,145_8,147_4"]
                },
            },
            "sprite": "https://iclient.supermap.io/web/styles/dark/sprite",
            "glyphs": "https://iserver.supermap.io/iserver/services/map-beijing/rest/maps/beijingMap/tileFeature/sdffonts/{fontstack}/{range}.pbf",
            "layers": []
        },
        center: [116.4, 39.9],
        minZoom: 10,
        zoom: 11
    });
    map.addControl(new maplibregl.NavigationControl(), 'top-left');

    map.on('load', function () {
        map.addLayer({
            "id": "background",
            "type": "background",
            "layout": {},
            "paint": {
                "background-color": "hsl(55, 1%, 20%)"
            }
        });
        map.addLayer({
            "id": "面区界R@北京",
            "type": "fill",
            "source": "vector-tiles",
            "source-layer": "面区界R@北京",
            "paint": {
                "fill-color": "hsl(55, 1%, 20%)",
            }
        });
        map.addLayer({
            "id": "界线@北京",
            "type": "line",
            "source": "vector-tiles",
            "source-layer": "界线@北京",
            "paint": {
                "line-color": "hsl(0, 0%, 35%)",
                "line-width": 0.5
            }

        });
        map.addLayer({
            "id": "立交桥绿地R@北京",
            "type": "fill",
            "source": "vector-tiles",
            "source-layer": "立交桥绿地R@北京",
            "paint": {
                "fill-color": "hsl(132, 2%, 20%)",
                "fill-opacity": 0.5,
            },
        });
        map.addLayer({
            "id": "绿地R@北京",
            "type": "fill",
            "source": "vector-tiles",
            "source-layer": "绿地R@北京",
            "paint": {
                "fill-color": "hsl(132, 2%, 20%)",
                "fill-opacity": 0.5,
            },
        });
        map.addLayer({
            "id": "	双线河R@北京",
            "type": "fill",
            "source": "vector-tiles",
            "source-layer": "双线河R@北京",
            "paint": {
                "fill-color": "hsl(185, 2%, 10%)"
            },
        });
        map.addLayer({
            "id": "湖泊、水库R@北京",
            "type": "fill",
            "source": "vector-tiles",
            "source-layer": "湖泊、水库R@北京",
            "paint": {
                "fill-color": "hsl(185, 2%, 10%)"
            },
        });

        map.addLayer({
            "id": "	四级道路L@北京",
            "type": "line",
            "source": "vector-tiles",
            "source-layer": "四级道路L@北京",
            "paint": {
                "line-width": 1,
                "line-color": "hsl(0, 0%, 27%)",
            }
        });
        map.addLayer({
            "id": "	三级道路L@北京",
            "type": "line",
            "source": "vector-tiles",
            "source-layer": "三级道路L@北京",
            "paint": {
                "line-width": 1,
                "line-color": "hsl(0, 0%,27%)",
            }
        });
        map.addLayer({
            "id": "	二级道路L@北京",
            "type": "line",
            "source": "vector-tiles",
            "source-layer": "二级道路L@北京",
            "paint": {
                "line-width": 4,
                "line-color": "hsl(0, 0%, 17%)",
            }
        });
        map.addLayer({
            "id": "	二级道路L@北京1",
            "type": "line",
            "source": "vector-tiles",
            "source-layer": "二级道路L@北京",
            "paint": {
                "line-width": 2,
                "line-color": "hsl(0, 0%, 27%)",
            }
        });
        map.addLayer({
            "id": "一级道路L@北京1",
            "type": "line",
            "source": "vector-tiles",
            "source-layer": "一级道路L@北京",
            "paint": {
                "line-width": 6,
                "line-color": "hsl(0, 0%, 17%)",
                "line-opacity": {
                    "base": 1,
                    "stops": [
                        [
                            10.99,
                            0
                        ],
                        [
                            11,
                            1
                        ]
                    ]
                },
            }
        });
        map.addLayer({
            "id": "一级道路L@北京",
            "type": "line",
            "source": "vector-tiles",
            "source-layer": "一级道路L@北京",
            "paint": {
                "line-width": 4,
                "line-color": "hsl(0, 0%, 27%)",
                "line-opacity": {
                    "base": 1,
                    "stops": [
                        [
                            10.99,
                            0
                        ],
                        [
                            11,
                            1
                        ]
                    ]
                },
            }
        });
        map.addLayer({
            "id": "	省道L@北京",
            "type": "line",
            "source": "vector-tiles",
            "source-layer": "省道L@北京",
            "paint": {
                "line-width": 6,
                "line-color": "hsl(0, 0%, 17%)",
            },
        });
        map.addLayer({
            "id": "	省道L@北京1",
            "type": "line",
            "source": "vector-tiles",
            "source-layer": "省道L@北京",
            "paint": {
                "line-width": 4,
                "line-color": "hsl(0, 0%, 27%)"
            },
        });
        map.addLayer({
            "id": "	高速公路L@北京",
            "type": "line",
            "source": "vector-tiles",
            "source-layer": "高速公路L@北京",
            "paint": {
                "line-width": 4,
                "line-color": "hsl(0, 0%, 27%)",

            }
        });

        //区划
        map.addLayer({
            "id": "区政府驻地@北京",
            "type": "symbol",
            "source": "vector-tiles",
            "source-layer": "区政府驻地@北京",
            "layout": {
                "text-offset": [-1.5, -0.5],
                "text-anchor": "bottom-left",
                "text-field": "{NAME}",
                "text-max-width": 7,
                "text-size": {
                    "base": 0.9,
                    "stops": [
                        [
                            4,
                            12
                        ],
                        [
                            10,
                            22
                        ]
                    ]
                }
            },
            "paint": {
                "text-color": {
                    "base": 1,
                    "stops": [
                        [
                            10,
                            "hsl(0, 0%, 75%)"
                        ],
                        [
                            11,
                            "hsl(0, 0%, 85%)"
                        ]
                    ]
                },
                "text-halo-color": "hsla(0, 0%, 10%, 0.75)",
                "text-halo-width": 1.25,
                "text-opacity": {
                    "base": 1,
                    "stops": [
                        [
                            11.99,
                            1
                        ],
                        [
                            12,
                            0
                        ]
                    ]
                },
                "text-halo-blur": 0
            },
        });
        //地标
        map.addLayer({
            "id": "标志建筑@北京",
            "type": "symbol",
            "source": "vector-tiles",
            "source-layer": "标志建筑@北京",
            "layout": {
                "text-offset": [-1.5, -0.5],
                "text-anchor": "bottom-left",
                "text-field": "{NAME}",
                "text-max-width": 7,
                "text-size": 14
            },
            "paint": {
                "text-color": "hsl(0, 0%, 60%)",
                "text-halo-color": "#212121",
                "text-halo-width": 1,
                "text-halo-blur": 0,
                "text-opacity": {
                    "base": 1,
                    "stops": [
                        [
                            10.99,
                            0
                        ],
                        [
                            11,
                            1
                        ]
                    ]
                },
            }

        });
        map.addLayer({
            "id": "	一级道路Name",
            "type": "symbol",
            "source": "vector-tiles",
            "source-layer": "一级道路L@北京",
            "layout": {
                "text-line-height": 1.1,
                "text-size": {
                    "base": 1.5,
                    "stops": [
                        [
                            13.99,
                            12
                        ],
                        [
                            20,
                            24
                        ]
                    ]
                },
                "text-font": [
                    "DIN Offc Pro Italic",
                    "Arial Unicode MS Regular"
                ],
                "symbol-placement": "line",
                "text-field": "{道路名称}",
                "text-letter-spacing": 0.1,
                "text-max-width": 5
            },
            "paint": {
                "text-color": "hsl(0, 0%, 0%)",
                "text-halo-color": "hsl(0, 0%, 100%)",
                "text-halo-width": 1.25,
                "text-opacity": {
                    "base": 1,
                    "stops": [
                        [
                            13.99,
                            0
                        ],
                        [
                            14,
                            1
                        ]
                    ]
                },
            },
        });
        map.addLayer({
            "id": "	省道Name",
            "type": "symbol",
            "source": "vector-tiles",
            "source-layer": "省道L@北京",
            "layout": {
                "text-line-height": 1.1,
                "text-size": {
                    "base": 1.5,
                    "stops": [
                        [
                            11,
                            10
                        ],
                        [
                            18,
                            24
                        ]
                    ]
                },
                "text-font": [
                    "DIN Offc Pro Italic",
                    "Arial Unicode MS Regular"
                ],
                "symbol-placement": "line",
                "text-field": "{道路名称}",
                "text-letter-spacing": 0.1,
                "text-max-width": 5
            },
            "paint": {
                "text-color": "hsl(0, 0%, 0%)",
                "text-halo-color": "hsl(0, 0%, 100%)",
                "text-halo-width": 1.25,
                "text-opacity": {
                    "base": 1,
                    "stops": [
                        [
                            10.99,
                            0
                        ],
                        [
                            11,
                            1
                        ]
                    ]
                },
            },
        });

        map.addLayer({
            "id": "立交桥名称P@北京",
            "type": "symbol",
            "source": "vector-tiles",
            "source-layer": "立交桥名称P@北京",
            "layout": {
                "text-offset": [-1, -1],
                "text-anchor": "bottom",
                "text-field": "{NAME}",
                "text-size": 14
            },
            "paint": {
                "text-color": "hsl(0, 0%, 78%)",
                "text-opacity": 1,
                "text-halo-color": "#212121",
                "text-halo-width": 1,
                "text-halo-blur": 0
            }

        });
        map.addLayer({
            "id": "长途汽车站@北京",
            "type": "symbol",
            "source": "vector-tiles",
            "source-layer": "长途汽车站@北京",
            "layout": {
                "icon-image": "bus-11",
                "text-offset": [-1, -1],
                "text-anchor": "bottom",
                "text-field": "{NAME}",
                "text-size": 12
            },
            "paint": {
                "text-color": "hsl(0, 0%, 78%)",
                "text-halo-color": "#212121",
                "text-halo-width": 1,
                "text-halo-blur": 0
            },

        });
        map.addLayer({
            "id": "图书馆@北京",
            "type": "symbol",
            "source": "vector-tiles",
            "source-layer": "图书馆@北京",
            "layout": {
                "icon-image": "library-11",
                "text-offset": [-1, -1],
                "text-anchor": "bottom",
                "text-field": "{NAME}",
                "text-size": 12
            },
            "paint": {
                "text-color": "hsl(0, 0%, 78%)",
                "text-halo-color": "#212121",
                "text-halo-width": 1,
                "text-halo-blur": 0
            },

        });
        map.addLayer({
            "id": "公园@北京",
            "type": "symbol",
            "source": "vector-tiles",
            "source-layer": "公园@北京",
            "layout": {
                "icon-image": "park-11",
                "text-offset": [0, -0.5],
                "text-anchor": "bottom",
                "text-field": "{NAME}",
                "text-size": 12
            },
            "paint": {
                "text-color": "hsl(0, 0%, 78%)",
                "text-halo-color": "#212121",
                "text-halo-width": 1,
                "text-halo-blur": 0
            },

        });
        map.addLayer({
            "id": "综合性广场@北京",
            "type": "symbol",
            "source": "vector-tiles",
            "source-layer": "综合性广场@北京",
            "layout": {
                "icon-image": "campsite-11",
                "text-offset": [0, -0.5],
                "text-anchor": "bottom",
                "text-field": "{NAME}",
                "text-size": 12
            },
            "paint": {
                "text-color": "hsl(0, 0%, 78%)",
                "text-halo-color": "#212121",
                "text-halo-width": 1,
                "text-halo-blur": 0
            },

        });

        map.addLayer({
            "id": "旅游景点@北京",
            "type": "symbol",
            "source": "vector-tiles",
            "source-layer": "旅游景点@北京",
            "layout": {
                "icon-image": "volcano-11",
                "text-offset": [0, -0.5],
                "text-anchor": "bottom",
                "text-field": "{NAME}",
                "text-size": 12
            },
            "paint": {
                "text-color": "hsl(0, 0%, 78%)",
                "text-halo-color": "#212121",
                "text-halo-width": 1,
                "text-halo-blur": 0
            },

        });
        map.addLayer({
            "id": "医疗卫生@北京",
            "type": "symbol",
            "source": "vector-tiles",
            "source-layer": "医疗卫生@北京",
            "layout": {
                "icon-image": "hospital-11",
                "text-offset": [0, -0.5],
                "text-anchor": "bottom",
                "text-field": "{NAME}",
                "text-size": 12
            },
            "paint": {
                "text-color": "hsl(0, 0%, 78%)",
                "text-halo-color": "#212121",
                "text-halo-width": 1,
                "text-halo-blur": 0
            }

        });
        map.addLayer({
            "id": "娱乐场所@北京",
            "type": "symbol",
            "source": "vector-tiles",
            "source-layer": "娱乐场所@北京",
            "layout": {
                "icon-image": "amusement-park-11",
                "text-offset": [0, -0.5],
                "text-anchor": "bottom",
                "text-field": "{NAME}",
                "text-size": 12
            },
            "paint": {
                "text-color": "hsl(0, 0%, 0%)",
                "text-opacity": 1,
                "text-halo-color": "hsl(0, 0%, 100%)",
                "text-halo-width": 1,
                "text-halo-blur": 1
            }

        });
        map.addLayer({
            "id": "大厦@北京",
            "type": "symbol",
            "source": "vector-tiles",
            "source-layer": "大厦@北京",
            "layout": {
                "icon-image": "picnic-site-11",
                "text-offset": [0, -0.5],
                "text-anchor": "bottom",
                "text-field": "{NAME}",
                "text-size": 12
            },
            "paint": {
                "text-color": "hsl(0, 0%, 0%)",
                "text-opacity": 1,
                "text-halo-color": "hsl(0, 0%, 100%)",
                "text-halo-width": 1,
                "text-halo-blur": 1
            }

        });
        map.addLayer({
            "id": "文化场所@北京",
            "type": "symbol",
            "source": "vector-tiles",
            "source-layer": "文化场所@北京",
            "layout": {
                "icon-image": "art-gallery-11",
                "text-offset": [0, -0.5],
                "text-anchor": "bottom",
                "text-field": "{NAME}",
                "text-size": 12
            },
            "paint": {
                "text-color": "hsl(0, 0%, 0%)",
                "text-opacity": 1,
                "text-halo-color": "hsl(0, 0%, 100%)",
                "text-halo-width": 1,
                "text-halo-blur": 1
            }

        });
        map.addLayer({
            "id": "运动场所@北京",
            "type": "symbol",
            "source": "vector-tiles",
            "source-layer": "运动场所@北京",
            "layout": {
                "icon-image": "bicycle-share-11",
                "text-offset": [0, -0.5],
                "text-anchor": "bottom",
                "text-field": "{NAME}",
                "text-size": 12
            },
            "paint": {
                "text-color": "hsl(0, 0%, 0%)",
                "text-opacity": 1,
                "text-halo-color": "hsl(0, 0%, 100%)",
                "text-halo-width": 1,
                "text-halo-blur": 1
            }

        });
        map.addLayer({
            "id": "交通运输@北京",
            "type": "symbol",
            "source": "vector-tiles",
            "source-layer": "交通运输@北京",
            "layout": {
                "icon-image": "bakery-11",
                "text-offset": [0, -0.5],
                "text-anchor": "bottom",
                "text-field": "{NAME}",
                "text-size": 12
            },
            "paint": {
                "text-color": "hsl(0, 0%, 0%)",
                "text-opacity": 1,
                "text-halo-color": "hsl(0, 0%, 100%)",
                "text-halo-width": 1,
                "text-halo-blur": 1
            }

        });
        map.addLayer({
            "id": "其它@北京",
            "type": "symbol",
            "source": "vector-tiles",
            "source-layer": "其它@北京",
            "layout": {
                "icon-image": "toilet-11",
                "text-offset": [0, -0.5],
                "text-anchor": "bottom",
                "text-field": "{NAME}",
                "text-size": 12
            },
            "filter": [
                "==",
                "NAME",
                "公厕"
            ],
            "paint": {
                "text-color": "hsl(0, 0%, 0%)",
                "text-opacity": 1,
                "text-halo-color": "hsl(0, 0%, 100%)",
                "text-halo-width": 1,
                "text-halo-blur": 1
            }

        });
        map.addLayer({
            "id": "服务行业@北京",
            "type": "symbol",
            "source": "vector-tiles",
            "source-layer": "服务行业@北京",
            "layout": {
                "icon-image": "embassy-11",
                "text-offset": [0, -0.5],
                "text-anchor": "bottom",
                "text-field": "{NAME}",
                "text-size": 12
            },
            "paint": {
                "text-color": "hsl(0, 0%, 0%)",
                "text-opacity": 1,
                "text-halo-color": "hsl(0, 0%, 100%)",
                "text-halo-width": 1,
                "text-halo-blur": 1
            }

        });
        map.addLayer({
            "id": "其它@北京2",
            "type": "symbol",
            "source": "vector-tiles",
            "source-layer": "其它@北京",
            "layout": {
                "icon-image": "car-11",
                "text-offset": [0, -0.5],
                "text-anchor": "bottom",
                "text-field": "{NAME}",
                "text-size": 12
            },
            "filter": [
                "==",
                "NAME",
                "停车场"
            ],
            "paint": {
                "text-color": "hsl(0, 0%, 0%)",
                "text-opacity": 1,
                "text-halo-color": "hsl(0, 0%, 100%)",
                "text-halo-width": 1,
                "text-halo-blur": 1
            }

        });
        map.addLayer({
            "id": "邮政电信@北京",
            "type": "symbol",
            "source": "vector-tiles",
            "source-layer": "邮政电信@北京",
            "layout": {
                "icon-image": "post-11",
                "text-offset": [0, -0.5],
                "text-anchor": "bottom",
                "text-field": "{NAME}",
                "text-size": 10,
                "text-max-width": 18
            },

            "paint": {
                "text-color": "hsl(0, 0%, 0%)",
                "text-opacity": 1,
                "text-halo-color": "hsl(0, 0%, 100%)",
                "text-halo-width": 1,
                "text-halo-blur": 1
            }

        });
        map.addLayer({
            "id": "商场@北京",
            "type": "symbol",
            "source": "vector-tiles",
            "source-layer": "商场@北京",
            "layout": {
                "icon-image": "grocery-11",
                "text-offset": [0, -0.5],
                "text-anchor": "bottom",
                "text-field": "{NAME}",
                "text-size": 12
            },
            "paint": {
                "text-color": "hsl(0, 0%, 78%)",
                "text-halo-color": "#212121",
                "text-halo-width": 1,
                "text-halo-blur": 0
            }

        });
        map.addLayer({
            "id": "综合性商店@北京",
            "type": "symbol",
            "source": "vector-tiles",
            "source-layer": "综合性商店@北京",
            "layout": {
                "icon-image": "grocery-11",
                "text-offset": [0, -0.5],
                "text-anchor": "bottom",
                "text-field": "{NAME}",
                "text-size": 12
            },
            "paint": {
                "text-color": "hsl(0, 0%, 78%)",
                "text-halo-color": "#212121",
                "text-halo-width": 1,
                "text-halo-blur": 0
            }

        });
        map.addLayer({
            "id": "饭店@北京",
            "type": "symbol",
            "source": "vector-tiles",
            "source-layer": "饭店@北京",
            "layout": {
                "icon-image": "restaurant-11",
                "text-offset": [0, -0.5],
                "text-anchor": "bottom",
                "text-field": "{NAME}",
                "text-size": 12
            },
            "paint": {
                "text-color": "hsl(0, 0%, 78%)",
                "text-halo-color": "#212121",
                "text-halo-width": 1,
                "text-halo-blur": 0
            }

        });
        map.addLayer({
            "id": "加油站@北京",
            "type": "symbol",
            "source": "vector-tiles",
            "source-layer": "加油站@北京",
            "layout": {
                "icon-image": "fuel-11",
                "text-offset": [0, -0.5],
                "text-anchor": "bottom",
                "text-field": "{NAME}",
                "text-size": 12
            },
            "paint": {
                "text-color": "hsl(0, 0%, 78%)",
                "text-halo-color": "#212121",
                "text-halo-width": 1,
                "text-halo-blur": 0
            }

        });
        map.addLayer({
            "id": "建筑@北京",
            "type": "symbol",
            "source": "vector-tiles",
            "source-layer": "建筑@北京",
            "layout": {
                "icon-image": "place-of-worship-11",
                "text-offset": [0, -0.5],
                "text-anchor": "bottom",
                "text-field": "{NAME}",
                "text-size": 12
            },
            "paint": {
                "text-color": "hsl(0, 0%, 78%)",
                "text-halo-color": "#212121",
                "text-halo-width": 1,
                "text-halo-blur": 0
            }

        });
        map.addLayer({
            "id": "码头@北京",
            "type": "symbol",
            "source": "vector-tiles",
            "source-layer": "码头@北京",
            "layout": {
                "icon-image": "harbor-11",
                "text-offset": [0, -0.5],
                "text-anchor": "bottom",
                "text-field": "{NAME}",
                "text-size": 12
            },
            "paint": {
                "text-color": "hsl(0, 0%, 78%)",
                "text-halo-color": "#212121",
                "text-halo-width": 1,
                "text-halo-blur": 0
            }

        });
        map.addLayer({
            "id": "机场@北京",
            "type": "symbol",
            "source": "vector-tiles",
            "source-layer": "机场@北京",
            "layout": {
                "icon-image": "airport-11",
                "text-offset": [0, -0.5],
                "text-anchor": "bottom",
                "text-field": "{NAME}",
                "text-size": 12
            },
            "paint": {
                "text-color": "hsl(0, 0%, 78%)",
                "text-halo-color": "#212121",
                "text-halo-width": 1,
                "text-halo-blur": 0
            }

        });
        map.addLayer({
            "id": "火车站@北京",
            "type": "symbol",
            "source": "vector-tiles",
            "source-layer": "火车站@北京",
            "layout": {
                "icon-image": "rail-15",
                "text-offset": [0, -0.5],
                "text-anchor": "bottom",
                "text-field": "{NAME}",
                "text-size": 12
            },
            "paint": {
                "text-color": "hsl(0, 0%, 78%)",
                "text-halo-color": "#212121",
                "text-halo-width": 1,
                "text-halo-blur": 0
            }

        });
        map.addLayer({
            "id": "地名@北京",
            "type": "symbol",
            "source": "vector-tiles",
            "source-layer": "地名@北京",
            "layout": {
                "icon-image": "dot-11",
                "text-offset": [0, -0.3],
                "text-anchor": "bottom",
                "text-field": "{NAME}",
                "text-size": 12
            },
            "paint": {
                "text-color": "hsl(0, 0%, 78%)",
                "text-halo-color": "#212121",
                "text-halo-width": 1,
                "text-halo-blur": 0
            }

        });
    });

</script>

</body>
</html>